package advance_2;

import java.util.Scanner;

public class ScannTest {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        //next nextLine
        //next 回车,空格作为结束符,一定要读到字符
        // nextLine以回车作为结束符
//        System.out.print("input int :");
//        int i=in.nextInt();
        System.out.println("input a str:");
        String str=in.nextLine();
        System.out.println(str+","+str.length());
        System.out.println("?????????????????????????????");
        Scanner in2=new Scanner("1234\t444");
        int a=in2.nextInt();
        double b=in2.nextDouble();
        System.out.println("a="+a+",b="+b);
    }
}
